#include <stdio.h>
#include <unistd.h>
#include <stdlib.h>
#define MAXN (10000007)
typedef __int64_t LL;
int list[MAXN] = {
    [3] 123,
    [8] 233,
    [9] 9
};

int main(int argc, char** argv) {
    for (int i=0; i<10; ++i) {
        printf("%d ", list[i]);
    }
    printf("\n");
    for (int i=0; i<MAXN; ++i) {
        list[i] = i;
    }
    LL sum = 0;
    LL sum1 = 0;
    LL sum2 = 0;
    LL sum3 = 0;
    int i;
    for (i=0; i<MAXN-3; i += 4) {
        sum += list[i];
        sum1 += list[i+1];
        sum2 += list[i+2];
        sum3 += list[i+3];
    }
    for (; i<MAXN; ++i) {
        sum += list[i];
    }
    printf("res: %lld\n", sum+sum1+sum2+sum3);
    return 0;
}
